function main() {
    const self = this;
    let stall_organization_id = this.cValue;
    handleCreate(stall_organization_id).then(res=>{
        self.$$("tree_single_select_4rogp7").cValue = res
    })
}

function handleCreate(stall_organization_id) {
    return new Promise((resolve, reject) => {
        api.EXEC_FORMULA("ENTITY_SELECT_ONE('ds_tbl:t_770183d1fd484443b39a89d22d462ae1',region_id,QUERY_EQ(stall_organization_id," + stall_organization_id + "))").then(function (response) {
            resolve(response.result);
        });
    });
}
